// -PATH------------------------------------------------------- \\
// Purple Defender - purpleDefender2
// ------------------------------------------------------------ \\
//
// Creator: Alan Carr
//
// Last modified: 03/12/08
//
// Description: 
//   The ship will typically start near the top of the formation
//   and so does not make the usual loop while starting its path.
//   The path brings the purpleDefender to the side of the
//   formation, then sweeps across the screen, dropping a bullet
//   towards one side of the middle of the screen before swooping
//   on down through the other side of the middle of the screen.
//   This path is intended to be used alongside other
//   simultaniously diving defenders for best effect.
//
// Difficulty: 6
//
// ------------------------------------------------------------ \\

setAngle 270
setSpeed 0.2
setAccel 0.03 limit 0.65


// exit the formation
setSize 7
moveToBack
right 0.4 angle 80 accel 0.1 2

straight left -48


// slow and turn around
setAccel -0.006 limit 0.35
setSize 7.5

left 0.5 angle 160 accel 0.025 2

// slight pause
setAccel 0


straight frames 20
moveToFront
setSize 8


// get quickly back up to speed and drop bullet on player
setAccel 0.01 limit 0.65

straight right -25

fireBullet 282 all 0 500

// turn around under formation and head back towards middle
straight right 10
setSize 8.5

right 0.5 angle 150 accel 0.07 2


straight frames 20
setAccel -0.001 limit 0.55

// enter the red zone
left 1.35 angle 53
straight wrapAny